<?php
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <!--/*添加按钮*/-->
    <?= $this->renderFile('@app/views/layouts/toolbar.php'); ?>
    <!--/*搜索*/-->
    <div id="search-area" class="yx-bgf7f7f7 yx-radius5 zx-mg yx-function2 yx-pr0">
        <?= \common\components\helpers\Search::textInput('category_name', null, ['label'=>'分类名称','class' => 'search  yx-width150 zx-lh24 yx-ml6']); ?>
        <?= \common\components\helpers\Search::textInput('name', null, ['label'=>'课程名称','class' => 'search  yx-width150 zx-lh24 yx-ml6']); ?>
        <?= \common\components\helpers\Search::textInput('mechanic_name', null, ['label'=>'机构名称','class' => 'search yx-input-text zx-width150 yx-ml6']); ?>
        <?=\common\components\helpers\Search::dropDownList('teache_form',null,[null=>'请选择',1=>'小班制',2=>'普通班',0=>'一对一',3=>'一对二',4=>'一对三'],['label'=>'教学形式','promote'=>'请选择','class'=>'search diy_select_txt'])?>
        <?= \common\components\helpers\Search::button('搜索', ['id'=>'search-handle','class'=>"yx-search yx-radius2"]); ?>
    </div>
    <!--/*表*/-->
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table5 table-striped with-check"  data-tablesaw-mode="swipe" data-tablesaw-minimap >
            <thead>
            <tr class="yx-bgd2f6ec">
                <th>价格名称</th>
                <th>折扣</th>
                <th>课次</th>
                <th>分成方式</th>
                <th>补贴方式</th>
                <th>类型</th>
                <th>是否可使用奖学金</th>
                <th>是否是活动</th>
                <th>是否不限课次</th>
                <th>不限课次有效期</th>
                <th>操作</th>
            </tr>
            </thead>
            <?php if($data) { ?>
                <?php foreach ($data as $item) { ?>
                    <tr>
                        <td><?=$item['price_name']?></td>
                        <td><?=$item['discount']?></td>
                        <td><?=$item['lesson']?></td>
                        <td><?=$item['distribution_way']?></td>
                        <td><?=$item['subsidy_type']?></td>
                        <td><?=$item['type_id']?></td>
                        <td><?=$item['is_scholarship']?></td>
                        <td><?=$item['is_activity']?></td>
                        <td><?=$item['is_frequency']?></td>
                        <td><?=$item['deadline_type']?></td>
                        <td><?=$item['operate']?></td>
                    </tr>
                <?php } ?>
            <?php } ?>
        </table>
    </div>
</div>


<?php
$js = <<<JS

JS;
$this->registerJs($js);
?>











